var domain = ''
var networkInterfaces = require('os').networkInterfaces()
for (var key in networkInterfaces) {
    networkInterfaces[key].forEach(item => {
        if (item.address == '123.56.115.107') {//'139.129.45.92'
            domain = 'zoro.site'
        }
    })
}

module.exports = {
    is_debug: false,
    sessionExpireTime: 3600000,
    domain: domain,
    returnRate: 0.5,
    returnPromoterRate: 0.1,
    chromeMaxTimes: 60,
    chromeReconnectTimeout: 10 * 1000,
    proxyReconnectTimeout: 10 * 1000,
    proxyIdleTimeout: 180 * 1000,
    proxyHelloTimeout: 10 * 1000,
	proxyDefaultPriority: 10,
    proxyDataLengthByteNum: 2,
    proxyClientIdByteNum: 1,
    proxyDataTypeByteNum: 1,
}

//dataLenth{2:1+1+n} clientId{1} dataType{1} data{n}
module.exports.ProxyDataType = {
    DATA: 1,
    CLOSE: 2,
	HELLO: 3,
	CONNECT: 4
}

module.exports.local = require('../config')